package proyecto.ABMCursos;

import javax.annotation.PostConstruct;
import javax.interceptor.InvocationContext;

public class LifecycleInterceptor
{
   @PostConstruct
   public void postConstruct(InvocationContext ctx)
   {
      try
      {
         System.out.println("LifecycleInterceptor postConstruct");
         ctx.proceed();
      }
      catch(Exception e)
      {
         throw new RuntimeException(e);
      }
   }
}
